import pkg from './package'

export default {
  mode: 'universal',

  /*
   ** Headers of the page
   */
  head: {
    title: "闲云旅游网", // 修改title
    meta: [{
        charset: 'utf-8'
      },
      {
        name: 'viewport',
        content: 'width=device-width, initial-scale=1'
      },
      {
        hid: 'description',
        name: 'description',
        content: pkg.description
      },
      {
        name: "referrer",
        content: "no-referrer"
      }
    ],
    link: [{
        rel: 'icon',
        type: 'image/x-icon',
        href: '/favicon.ico'
      },
      {
        rel: 'stylesheet',
        type: 'text/css',
        href: '//at.alicdn.com/t/font_2053602_tnu2yombipe.css'
      }, //阿里图标
      {
        rel: 'stylesheet',
        type: 'text/css',
        href: 'https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css'
      } // 新增全局字体样式
    ]
  },

  /*
   ** Customize the progress-bar color
   */
  loading: {
    color: '#fff'
  },

  /*
   ** Global CSS
   */
  css: [
    'element-ui/lib/theme-chalk/index.css',
    'assets/main.css', // 新增自定义的页面过渡样式（文件来自3.4.1）
    // 'assets/font/iconfont.css' //子图图标文件
  ],

  /*
   ** Plugins to load before mounting the App
   */
  plugins: [
    // '@/plugins/element-ui',
    '@/plugins/axios',
    '@/plugins/route',
    {
      src: '@/plugins/element-ui.js',
      ssr: true
    },
    {
      src: '@/plugins/vue2-editor',
      ssr: false //为false表示 该文件只会在客户端被打包引入。
    },
    {
      src: '@/plugins/localStorage',
      ssr: false
    }
  ],

  /*
   ** Nuxt.js modules
   */
  modules: [
    // https://axios.nuxtjs.org/setup
    '@nuxtjs/axios'
  ],

  /*
   ** Axios module configuration
   */
  axios: {
    // See https://github.com/nuxt-community/axios-module#options
    // baseURL: "http://157.122.54.189:9095" // 新增备用地址
    baseURL: "http://157.122.54.189:9095", // 新增axios默认请求路径       
  },

  /*
   ** Build configuration
   */
  build: {
    transpile: [/^element-ui/],

    /*
     ** You can extend webpack config here
     */
    extend(config, ctx) {}
  },
}
